<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <body>
        <ui:composition>
            <h:form id="headerForm">
                <div style="text-align: center">
                <h:outputFormat style="display:inline-block;width:41%;vertical-align: top;text-align: left;" rendered="#{loginBean.usuarioSeleccionado!=null}" value="#{messages.LogeadoComo}">
                    <f:param value="#{loginBean.usuarioSeleccionado.nombreUsuario}"></f:param>
                </h:outputFormat>                
                <div style="text-align: center;display:inline-block;width:17.5%">
                    <h:graphicImage library="images" styleClass="headerLogo" name="ScalperS.png"></h:graphicImage>
                </div>
                <p:commandLink style="display:inline-block;width:40%;text-align: right;vertical-align: top;" rendered="#{loginBean.usuarioSeleccionado!=null}" value="Salir" action="#{loginBean.logout()}"></p:commandLink>
                </div>
            </h:form>
        </ui:composition>
    </body>
</html>

